<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkViewport</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="MiscObjects.html" title="杂项">
<link rel="prev" href="gtk3-GtkTooltip.html" title="GtkTooltip">
<link rel="next" href="gtk3-GtkAccessible.html" title="GtkAccessible">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkTooltip.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MiscObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkAccessible.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkViewport.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkViewport.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkViewport"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkViewport.top_of_page"></a>GtkViewport</span></h2>
<p>GtkViewport — An adapter which makes widgets scrollable</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkViewport.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport">GtkViewport</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-new" title="gtk_viewport_new ()">gtk_viewport_new</a>                    (<em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *hadjustment</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vadjustment</code></em>);
<a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-get-hadjustment" title="gtk_viewport_get_hadjustment ()">gtk_viewport_get_hadjustment</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
<a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-get-vadjustment" title="gtk_viewport_get_vadjustment ()">gtk_viewport_get_vadjustment</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-set-hadjustment" title="gtk_viewport_set_hadjustment ()">gtk_viewport_set_hadjustment</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-set-vadjustment" title="gtk_viewport_set_vadjustment ()">gtk_viewport_set_vadjustment</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-set-shadow-type" title="gtk_viewport_set_shadow_type ()">gtk_viewport_set_shadow_type</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a> type</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="returnvalue">GtkShadowType</span></a>       <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-get-shadow-type" title="gtk_viewport_get_shadow_type ()">gtk_viewport_get_shadow_type</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
<a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-get-bin-window" title="gtk_viewport_get_bin_window ()">gtk_viewport_get_bin_window</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
<a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="gtk3-GtkViewport.html#gtk-viewport-get-view-window" title="gtk_viewport_get_view_window ()">gtk_viewport_get_view_window</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkViewport.description"></a><h2>Description</h2>
<p>
The <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> widget acts as an adaptor class, implementing
scrollability for child widgets that lack their own scrolling
capabilities. Use <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> to scroll child widgets such as
<a class="link" href="gtk3-GtkTable.html#GtkTable" title="struct GtkTable"><span class="type">GtkTable</span></a>, <a class="link" href="gtk3-GtkBox.html#GtkBox" title="struct GtkBox"><span class="type">GtkBox</span></a>, and so on.
</p>
<p>
If a widget has native scrolling abilities, such as <a class="link" href="gtk3-GtkTextView.html#GtkTextView" title="struct GtkTextView"><span class="type">GtkTextView</span></a>,
<a class="link" href="gtk3-GtkTreeView.html#GtkTreeView" title="struct GtkTreeView"><span class="type">GtkTreeView</span></a> or <span class="type">GtkIconview</span>, it can be added to a <a class="link" href="gtk3-GtkScrolledWindow.html#GtkScrolledWindow" title="struct GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>
with <a class="link" href="gtk3-GtkContainer.html#gtk-container-add" title="gtk_container_add ()"><code class="function">gtk_container_add()</code></a>. If a widget does not, you must first add the
widget to a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>, then add the viewport to the scrolled window.
The convenience function <a class="link" href="gtk3-GtkScrolledWindow.html#gtk-scrolled-window-add-with-viewport" title="gtk_scrolled_window_add_with_viewport ()"><code class="function">gtk_scrolled_window_add_with_viewport()</code></a> does
exactly this, so you can ignore the presence of the viewport.
</p>
<p>
The <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> will start scrolling content only if allocated less
than the child widget's minimum size in a given orientation.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkViewport.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkViewport"></a><h3>struct GtkViewport</h3>
<pre class="programlisting">struct GtkViewport {
  GtkBin bin;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-new"></a><h3>gtk_viewport_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_viewport_new                    (<em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *hadjustment</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *vadjustment</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> with the given adjustments.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>hadjustment</code></em> :</span></p></td>
<td>horizontal adjustment.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vadjustment</code></em> :</span></p></td>
<td>vertical adjustment.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-get-hadjustment"></a><h3>gtk_viewport_get_hadjustment ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_viewport_get_hadjustment        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_viewport_get_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="gtk3-GtkScrollable.html#gtk-scrollable-get-hadjustment" title="gtk_scrollable_get_hadjustment ()"><code class="function">gtk_scrollable_get_hadjustment()</code></a></p>
</div>
<p>
Returns the horizontal adjustment of the viewport.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the horizontal adjustment of <em class="parameter"><code>viewport</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-get-vadjustment"></a><h3>gtk_viewport_get_vadjustment ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_viewport_get_vadjustment        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_viewport_get_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="gtk3-GtkScrollable.html#gtk-scrollable-get-vadjustment" title="gtk_scrollable_get_vadjustment ()"><code class="function">gtk_scrollable_get_vadjustment()</code></a></p>
</div>
<p>
Returns the vertical adjustment of the viewport.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the vertical adjustment of <em class="parameter"><code>viewport</code></em>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-set-hadjustment"></a><h3>gtk_viewport_set_hadjustment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_viewport_set_hadjustment        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_viewport_set_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="gtk3-GtkScrollable.html#gtk-scrollable-set-hadjustment" title="gtk_scrollable_set_hadjustment ()"><code class="function">gtk_scrollable_set_hadjustment()</code></a></p>
</div>
<p>
Sets the horizontal adjustment of the viewport.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-set-vadjustment"></a><h3>gtk_viewport_set_vadjustment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_viewport_set_vadjustment        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a> *adjustment</code></em>);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_viewport_set_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="gtk3-GtkScrollable.html#gtk-scrollable-set-vadjustment" title="gtk_scrollable_set_vadjustment ()"><code class="function">gtk_scrollable_set_vadjustment()</code></a></p>
</div>
<p>
Sets the vertical adjustment of the viewport.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>adjustment</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-set-shadow-type"></a><h3>gtk_viewport_set_shadow_type ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_viewport_set_shadow_type        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="type">GtkShadowType</span></a> type</code></em>);</pre>
<p>
Sets the shadow type of the viewport.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
<td>the new shadow type.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-get-shadow-type"></a><h3>gtk_viewport_get_shadow_type ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkShadowType" title="enum GtkShadowType"><span class="returnvalue">GtkShadowType</span></a>       gtk_viewport_get_shadow_type        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
<p>
Gets the shadow type of the <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>. See
<a class="link" href="gtk3-GtkViewport.html#gtk-viewport-set-shadow-type" title="gtk_viewport_set_shadow_type ()"><code class="function">gtk_viewport_set_shadow_type()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the shadow type</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-get-bin-window"></a><h3>gtk_viewport_get_bin_window ()</h3>
<pre class="programlisting"><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_viewport_get_bin_window         (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
<p>
Gets the bin window of the <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-viewport-get-view-window"></a><h3>gtk_viewport_get_view_window ()</h3>
<pre class="programlisting"><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_viewport_get_view_window        (<em class="parameter"><code><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a> *viewport</code></em>);</pre>
<p>
Gets the view window of the <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>viewport</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.22</p>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkViewport.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkScrolledWindow.html#GtkScrolledWindow" title="struct GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a>, <a class="link" href="gtk3-GtkAdjustment.html#GtkAdjustment" title="struct GtkAdjustment"><span class="type">GtkAdjustment</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>